﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Things.ThingsWeb.GoodsPrice
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					Guid GoodsID=new Guid(strid);
					ShowInfo(GoodsID);
				}
			}
		}
		
	private void ShowInfo(Guid GoodsID)
	{
		Things.BLL.GoodsPrice bll=new Things.BLL.GoodsPrice();
		Things.Model.GoodsPrice model=bll.GetModel(GoodsID);
		this.lblID.Text=model.ID.ToString();
		this.lblGoodsID.Text=model.GoodsID.ToString();
		this.lblGoodsPriceType.Text=model.GoodsPriceType;
		this.lblGoodsCurrentPrice.Text=model.GoodsCurrentPrice.ToString();
		this.lblGoodsStandPrice.Text=model.GoodsStandPrice.ToString();

	}


    }
}
